
package financeapi;

public class CreditPayment extends PaymentType{

	private String cardNumber;
	private String cardType;

	public CreditPayment(String cardNumber, String cardType) {

		this.cardNumber = cardNumber;
		this.cardType = cardType;
		needsAuthorization=true;
		type = "Credit";
	}
		public String getCardNumber() {
		return cardNumber;
	}
	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}
	public String getCardType() {
		return cardType;
	}
	public void setCardType(String cardType) {
		this.cardType = cardType;
	}
}
